﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Himp.Platform.Api
{
    public class OpenApiInput
    {
        /// <summary>
        /// 交易编号
        /// 
        /// </summary>
        [Required]
        [StringLength(4)]
        public string InfNo { get; set; }

        /// <summary>
        /// 发送方报文ID
        /// </summary>
        [Required]
        [StringLength(30)]
        public string MsgId { get; set; }

        /// <summary>
        /// 数字签名信息
        /// </summary>
        [Required]
        [StringLength(1024)]
        public string Cainfo { get; set; }

        /// <summary>
        /// 签名类型
        /// </summary>
        public string SignType { get; set; }

        /// <summary>
        /// 接口版本号
        /// </summary>
        [Required]
        [StringLength(6)]
        public string InfVer { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        [Required]
        [StringLength(19)]
        public string InfTime { get; set; }

        /// <summary>
        /// 机构编号
        /// </summary>
        [Required]
        [StringLength(12)]
        public string OrganCode { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        [Required]
        [StringLength(20)]
        public string OrganName { get; set; }

        /// <summary>
        /// 交易输入
        /// </summary>
        [Required]
        public string Input { get; set; }
    }
}
